//
//  QDLoginNetWork.m
//  QuDanOEM
//
//  Created by wmz on 2021/11/8.
//

#import "QDLoginNetWork.h"

@implementation QDLoginNetWork
- (void)requestLoginSendCode:(NSDictionary *)params viewController:(nullable UIViewController*)vc andBlock:(nullable PostNetWorkBock)block{
    [[BSNetAPIClient sharedClient] requestWithPath:@"/qw/auth/app_login/sendCode" params:params viewController:vc type:Post info:@[@(ShowLoading),@(ShowErrorAlert),@(ShowNotLogin)]  block:block];
}

- (void)requestLoginApp:(NSDictionary *)params viewController:(nullable UIViewController*)vc andBlock:(nullable PostNetWorkBock)block{
    [[BSNetAPIClient sharedClient] requestWithPath:@"/qw/auth/app_login/vcode" params:params viewController:vc type:Post info:@[@(ShowErrorAlert),@(ShowNotLogin)]  block:block];
}

- (void)requestLoginAppWithPassword:(NSDictionary *)params viewController:(nullable UIViewController*)vc andBlock:(nullable PostNetWorkBock)block{
    [[BSNetAPIClient sharedClient] requestWithPath:@"/qw/auth/app_login/pwd" params:params viewController:vc type:Post info:@[@(ShowErrorAlert),@(ShowNotLogin)]  block:block];
}

- (void)requestLoginGuest:(NSDictionary *)params viewController:(nullable UIViewController*)vc andBlock:(nullable PostNetWorkBock)block{
    [[BSNetAPIClient sharedClient] requestWithPath:@"/qw/auth/app/guestLogin" params:params viewController:vc type:Post info:@[@(ShowLoading),@(ShowErrorAlert),@(ShowNotLogin)]  block:block];
}

- (void)requestMemberSpwd:(NSDictionary *)params viewController:(nullable UIViewController*)vc andBlock:(nullable PostNetWorkBock)block{
    [[BSNetAPIClient sharedClient] requestWithPath:@"/qw/app/member/spwd" params:params viewController:vc type:Post info:@[@(ShowErrorAlert),@(ShowSuccessAlert),@(ShowLoading)]  block:block];
}

- (void)requestMemberUpwd:(NSDictionary *)params viewController:(nullable UIViewController*)vc andBlock:(nullable PostNetWorkBock)block{
    [[BSNetAPIClient sharedClient] requestWithPath:@"/qw/app/member/upwd" params:params viewController:vc type:Post info:@[@(ShowErrorAlert),@(ShowSuccessAlert),@(ShowLoading)]  block:block];
}

- (void)requestMemberSetppwd:(NSDictionary *)params viewController:(nullable UIViewController*)vc andBlock:(nullable PostNetWorkBock)block{
    [[BSNetAPIClient sharedClient] requestWithPath:@"/qw/app/member/setppwd" params:params viewController:vc type:Post info:@[@(ShowErrorAlert),@(ShowSuccessAlert),@(ShowLoading)]  block:block];
}

- (void)requestMemberCppwd:(NSDictionary *)params viewController:(nullable UIViewController*)vc andBlock:(nullable PostNetWorkBock)block{
    [[BSNetAPIClient sharedClient] requestWithPath:@"/qw/app/member/cppwd" params:params viewController:vc type:Post info:@[@(ShowErrorAlert),@(ShowSuccessAlert),@(ShowLoading)]  block:block];
}
@end
